test_consumer:mq_consumertest.cpp ../mqcommon/mq_message.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_route:mq_routetest.cpp ../mqcommon/mq_message.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_host:mq_hostest.cpp ../mqcommon/mq_message.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_message:mq_messagetest.cpp ../mqcommon/mq_message.pb.cc
	g++ -g -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_binding:mq_bindingtest.cpp
	g++ -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_queue:mq_queuetest.cpp
	g++ -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_exchange:mq_exchangetest.cpp
	g++ -std=c++11 $^ -o $@ -lgtest -lsqlite3 -pthread -lprotobuf
test_file:test_file.cpp
	g++ -std=c++11 $^ -o $@ 
clean:
	rm -rf test_file test_exchange db test_queue test_binding test_message data test_host test_route test_consumer